#!/usr/bin/env python

import os
import sys

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from runtest_dalton import Filter, TestRun

test = TestRun(__file__, sys.argv)

f = Filter()
f.add(from_string = 'Excited state no:',
      num_lines = 15,
      ignore_sign=True,
      rel_tolerance = 1.0e-4)

test.run(['pe_mcscf_trplt.dal'], ['h2o_solute.mol'], ['3h2o.pot'], f={'out': f},
         accepted_errors = ["not implemented for parallel calculations"])

sys.exit(test.return_code)
